var mongoose=require("mongoose");
require("../models/user.server.model")();
module.exports=function(){
	var db=mongoose.connect("mongodb://localhost/test9");
	
	// var User=mongoose.model("user");
	// var user=new User({name:"john",email:"eee@163.com",salary:34.56});
	// user.save(function(err){
	// 	db.disconnect();
	// });
	

 	return db;
 }
